/**
 * 
 * @param {*} fieldConfig 
 * @param {*} number 
 */
export const getTableDataList = (fieldConfig, number) => {
    const mockdata = []
    for(let i = 0; i < number; i ++) {
        const rowData = {}
        fieldConfig.forEach((item, index) => {
            const { name, field } = item
            rowData[field] = `模拟${ name }数据`
        })
        mockdata.push(rowData)
    }
    return mockdata
}


/**
 * 
 * @param {*} fieldConfig 
 * @param {*} number 
 */
export const getTableFieldConfig = (number) => {
    const fieldlist = []
    for(let i = 0; i < number; i ++) {
        fieldlist.push({
            name: `字段${ i }`,
            field: `test${ i }_field`,
            default: false,
        })
    }
    return fieldlist
}



export const fieldConfig = [

]


export const mockTableData = [

]